import request from '@/api/request';

// 登录
export const userLogin = (phone, password) => {
	return request({
		url: '/user/passport/login',
		method: 'post',
		data: { phone, password },
	});
};

// 退出登录
export const signOut = () => request({ url: '/user/passport/logout', method: 'get' });
